usage for creation_time.
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4081
f51c46e8-681c-474f-0cfe-
069cfd0219fb
--- /dev/null
+// Copyright ME.
+
+#include <QDateTime>
+
+// As this code began in C, we have several hundred places that set and
+// read creation_time as a time_t. Provide some operator overloads to make
+// that less painful.
+class gbDateTime : public QDateTime {
+public:
+ operator const time_t() const {
+ return this->toTime_t();
+ }
+ const time_t& operator=(const time_t& t) {
+ this->setTime_t(t);
+ }
+};
+
+